package io;

import java.io.*;

public class BRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis =new FileInputStream("pr.txt");
        InputStreamReader isr =new InputStreamReader(fis);
        BufferedReader br =new BufferedReader(isr);//字符流的缓速读取流流
        //不能自动单独读取换行符
        //如果有整行的换行符,则输出空"  ";
        String line;
        while((line=br.readLine())!=null){//手动换行代码
            //System.out.println(line);//换行输出
            System.out.print(line);//没有换行输出
        }
        br.close();
    }
}
